package com.zff.rental.entity.apartment;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zff.rental.AppConstant;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.Comment;


/**
 * 公寓套间类型
 *
 * @author HCY
 */
@Data
@Entity
@Table(name = AppConstant.TABLE_NAME_SUITES_TYPE)
@TableName(AppConstant.TABLE_NAME_SUITES_TYPE)
public class SuitesTypeEntity {
    /**
     * 套间类型Id
     */
    @Id
    @TableId
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column()
    @Comment("套间类型Id")
    private Long id;

    /**
     * 公寓Id
     */
    @Column()
    @Comment("公寓Id")
    private Long apartmentId;

    /**
     * 套间名称
     */
    @Column(length = 128)
    @Comment("套间名称")
    private String name;

    /**
     * 价格（租价）
     */
    @Column(scale = 2)
    @Comment("价格（租价）")
    private Float price;

    /**
     * 户型：一室、一室一厅
     */
    @Column()
    @Comment("户型：一室、一室一厅")
    private String houseType;

    /**
     * 备注
     */
    @Column(length = 65535, columnDefinition = "TEXT")
    @Comment("备注")
    private String memo;

}
